package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Role;
import cn.wolfcode.crm.query.QueryForObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;
import java.util.Set;

public interface IRoleService {
    void deleteByPrimaryKey(Long id);

    void insert(Role record);

    Role selectByPrimaryKey(Long id);

    List<Role> selectAll();

    void updateByPrimaryKey(Role record);

    PageResult query(QueryForObject qo);

    //通过员工id获取角色
    List<Long> getRoleIdByEmpId(Long empId);

    //通过员工id获取角色
    Set<String> selectRoleByEmployeeId(Long empId);

    //通过员工id查询角色编号
    List<String> queryRoleSnByEmpId(Long id);
}
